package com.may.consumer.bootstrap;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.FeignAutoConfiguration;

/**
 * 这里有依赖 demo-provider，所以 pom 中引入的是接口，走的是 demo-provider 的服务，不应该引入实现类，否则不会走到 demo-provider 服务。
 */
@EnableDiscoveryClient
@SpringBootApplication(scanBasePackages = "com.may",exclude = {FeignAutoConfiguration.class})
public class ConsumerApplication {
    public static void main(String[] args) {
        SpringApplication.run(ConsumerApplication.class,args);
    }
}
